package com.woniuxy.microsysserver.feign;
import com.woniuxy.microsysserver.feignfullback.FoundFullBackFactary;
import com.woniuxy.microsysserver.feignfullback.MessageFullBackFactary;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
//公共服务接口
@FeignClient(value = "cd-finance-micro-commonutil-server",fallbackFactory = MessageFullBackFactary.class)
public interface MessageFeign {
    @PostMapping(value = "/message/send" , produces = MediaType.APPLICATION_JSON_VALUE)
    String sendMessage(@RequestParam(value = "phoneNum") String phoneNum);

    @PostMapping(value = "/certification/send" , produces = MediaType.APPLICATION_JSON_VALUE)
    String certification(@RequestParam("idcardName") String idcardName,@RequestParam("idcard") String idcard);
}
